﻿<?xml version="1.0" encoding="utf-8"?>
<!--

//***************************************************************************
// ***** Script Header *****
//
// Solution:  Solution Accelerator for Business Desktop Deployment
// File:      DeployWiz_Scripts.xml
//
// Purpose:   Deployment Wizard 
//
// Microsoft Solution Version:  4.0.175
// Microsoft Script Version:    4.0.175
// Customer Build Version:      1.0.0
// Customer Script Version:     1.0.0
//
// Microsoft History:
// 2.6.0    KeithGa  03/14/2006  Ported version, new script header
// 3.0.2    MTN      03/30/2006  Re-added the "DeploymentType" pane
// 3.0.24   MTN      05/20/2006  Added new pane for new computer scenario
//                               to ask for state location
// 3.0.78   MTN      10/11/2006  Removed "SelectImage" side effects
// 3.0.123  MTN      12/01/2006  Changed "incorrectly configured" message
// 3.0.128  MTN      12/06/2006  Don't display BitLocker screen if preparing to capture
// 3.0.140  MTN      01/15/2007  Skip BitLocker detail screen if preparing to capture
// 4.0.175  MTN      05/04/2007  Adjust to use task sequences instead of builds
// 4.0.185  MTN      05/17/2007  Don't display user state pane for servers
// 4.0.249  TJ       07/25/2007  Added Validation for Image Capture
// 4.0.302  TPM      08/08/2007  Modified Replace scenario based on replace template
//
// Customer History:
//
// ***** End Header *****
//***************************************************************************

-->
<Wizard>
  <Global>
    <CustomStatement> document.title =  "Windows Deployment Wizard" </CustomStatement>
    <CustomStatement> window.resizeTo 700,500 </CustomStatement>
    <Initialization>DeployWiz_Initialization.vbs</Initialization>
    <Validation>DeployWiz_Validation.vbs</Validation>
  </Global>
  <!-- ************************************************************** -->
  <!-- ************************************************************** -->
  <Pane id="SelectTaskSequence">
    <Condition>UCASE(Property("SkipTaskSequence"))&lt;&gt;"YES" </Condition>
    <Body><![CDATA[
      <H1>Select a task sequence to execute on this computer.</H1>
      <p>The following task sequences are available.</p>
      
      <div class=DynamicListBox style="height: expression( GetDynamicListBoxSize(this) ); ">    
      <table id="TSList" datasrc="#tasksequences" width="100%" border=0 cellSpacing=0 language=vbscript onreadystatechange=ReadyInitializeTSList>
         <tr valign=top class="DynamicListBoxRow"
             onmouseover="javascript:this.className = 'DynamicListBoxRow-over';" 
             onmouseout="javascript:this.className = 'DynamicListBoxRow';" >
            <td class=DynamicListBoxElement width="0px">
               <input type=radio name=SelectedItem language=vbscript onPropertyChange="AppItemChange" />
               <input type=hidden Name=TSGuid disabled datafld="guid" />
            </td>
            <td language=vbscript onclick="ClickChildCheckBox" class=DynamicListBoxElement width="100%">
               <div><Label datafld="Name" class="Larger" ></Label></div>
               <div><Label datafld="Comments" dataformatas="HTML"><label class=errmsg style="display: inline;" >No task sequences are available (TaskSequences.xml does not exist, is empty, or is inaccessible)</label></Label></div>            
            </td>
      </table>
      </div>

      <input type=hidden id=TaskSequenceID  name=TaskSequenceID>
      
      <xml id="tasksequences"></xml>

      ]]></Body>
    <Initialization>InitializeTSList</Initialization>
    <Validation>ValidateTSList</Validation>
  </Pane>
  <Pane id="DeploymentType">
    <Condition><![CDATA[UCase(Property("SkipDeploymentType"))<>"YES" and Property("DeploymentType")<>"NEWCOMPUTER" and Property("OSGUID")<>"" or Property("DeploymentType")=""]]></Condition>
    <Initialization><![CDATA[ InitializeDeploymentType ]]></Initialization>
    <Validation><![CDATA[ ValidateDeploymentType ]]></Validation>
    <Body><![CDATA[
<H1>Choose a migration type.</H1>
<table>
	<tr>
		<td>
			<input type=radio name="DeploymentType" id="DTRadio1" checked value="REFRESH" accesskey=f language=vbscript >
		</td>
		<td>
    		<label class=Larger for=DTRadio1 language=vbscript >Re<u class=larger>f</u>resh this computer.</label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<p>Save all configuration information, remove the existing operating system, and install a new operating system.</p>
    	</td>
	</tr>
	<tr><td colspan=2>&nbsp;</td></tr>
	<tr>
		<td>
			<input type=radio name="DeploymentType" id="DTRadio2" value="UPGRADE" accesskey=u language=vbscript >
		</td>
		<td>
	    	<label class=Larger for=DTRadio2 language=vbscript ><u class=larger>U</u>pgrade this computer.</label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<p>Preserve existing applications and configuration information, upgrading the existing operating system.</p>
    	</td>
	</tr>
	<tr><td colspan=2>&nbsp;</td></tr>
</table>

			]]></Body>
  </Pane>
  <Pane id="ComputerName">
    <Condition><![CDATA[UCase(Property("SkipComputerName"))<>"YES" and Property("DeploymentType")<>"REPLACE" and Property("DeploymentType")<>"UPGRADE" and Property("DeploymentType")<>"CUSTOM" ]]></Condition>
    <Body><![CDATA[
            
    <H1>Configure the computer name.</H1>
    <span style="width: 95%;">
    
        <p>Choose a name for your PC that will help you identify it on your network, if you have one. Each computer on your network must have a unique name.</p>
        <P>You can name your computer based on its owner or location, for example "DAVID" or "XYZLAB123." In order 
        for your computer to appear on a network, its name cannot be longer than 15 characters or contain any 
        spaces or characters aside from the numbers 0-9, the letters A-Z and a-z, and hyphens.</P>
        
        <p><span class="Larger">Computer n<u class=larger>a</u>me:</span>
        <input type=text id="ComputerName" name=ComputerName size=15 language=vbscript onpropertychange=ValidateComputerName AccessKey=A /></p>

        <p>&nbsp;
          <label class=ErrMsg for=ComputerName>* Required (MISSING)</label>
          <label class=ErrMsg id=InvalidChar>Letters, Numbers & Dashes only!</label>
          <label class=ErrMsg id=TooLong>Maximum of 15 characters!</label>
        </p>
        
        <!--  Computer Description Format -->
        <!--
        
        <p>You can also give your computer a friendly description. Unlike the computer 
        name, the computer description may contain spaces and other special characters. "Frank Kim's Test machine" and 
        "E-Mail Server #23, Miami Regional Office, Rm. 2305." are examples of computer descriptions.</p>
        
        <p><span class="Larger">Computer <u class=larger>d</u>escription:</span><br/>
        <input type=text id="Description" name=ComputerDescription size=60 language=vbscript onpropertychange=ValidateComputerName AccessKey=d /></p>
        -->
        
    </span>

		]]></Body>
    <Validation><![CDATA[ValidateComputerName]]></Validation>
  </Pane>
  <Pane id="TimeZone">
    <Condition><![CDATA[   UCase(Property("SkipTimeZone"))<>"YES" and Property("DeploymentType")<>"REPLACE" and Property("DeploymentType")<>"CUSTOM"]]></Condition>
    <Initialization><![CDATA[ TimeZone_Initialization ]]></Initialization>
    <Validation><![CDATA[  TimeZoneName.Value <> "" and TimeZone.Value <> "" ]]></Validation>
    <Body><![CDATA[
          
           <!-- Use the H1 Style for titles at the top of the page -->
           <H1>Set the Time Zone<H1>
           
           <select id=TimeZoneList size=15 language=VBScript onchange="SetTimeZoneValue" class=wideedit>
           
           <!--           
           The following is a static table of Time Zones supported by Windows XP/2003 and Windows Vista
           TimeZone Format:           
               <option value="TimeZoneNumber;TimeZoneName[;TimeZoneName_Alternate][;TimeZoneDescription_Alternate]">TimeZoneDescription</option>
           Where:
               TimeZoneNumber - The Time Zone number used in Windows XP/2003 (Whistler) Unattend.txt files. [GuiUnattended] TimeZone
               TimeZoneName - The Time Zone Name used in Windows Vista (Longhorn) unattend.xml files. <TimeZone> entries
               TimeZoneName_Alternate - This is the alternate Name used in Windows XP documentation. (Used to Match Time Zone only).
               TimeZoneDescription_Alternate - This is the Alternate Description used in Windows XP Documentation. (Used to Match Time Zone only).
               TimeZoneDescription - This is the value displayed in the dialog box.
           -->
           
                <option value="90;Greenwich Standard Time">(GMT) Casablanca, Monrovia</option>
                <option value="85;GMT Standard Time">(GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London</option>
                <option value="110;W. Europe Standard Time">(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna</option>
                <option value="95;Central Europe Standard Time">(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague</option>
                <option value="105;Romance Standard Time">(GMT+01:00) Brussels, Copenhagen, Madrid, Paris</option>
                <option value="100;Central European Standard Time">(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb</option>
                <option value="113;W. Central Africa Standard Time">(GMT+01:00) West Central Africa</option>
                <option value="130;GTB Standard Time">(GMT+02:00) Athens, Istanbul, Minsk</option>
                <option value="115;E. Europe Standard Time">(GMT+02:00) Bucharest</option>
                <option value="120;Egypt Standard Time">(GMT+02:00) Cairo</option>
                <option value="140;South Africa Standard Time">(GMT+02:00) Harare, Pretoria</option>
                <option value="125;FLE Standard Time;(GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius">(GMT+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius</option>
                <option value="135;Israel Standard Time">(GMT+02:00) Jerusalem</option>
                <option value="158;Arabic Standard Time">(GMT+03:00) Baghdad</option>
                <option value="150;Arab Standard Time">(GMT+03:00) Kuwait, Riyadh</option>
                <option value="145;Russian Standard Time">(GMT+03:00) Moscow, St. Petersburg, Volgograd</option>
                <option value="155;E. Africa Standard Time">(GMT+03:00) Nairobi</option>
                <option value="160;Iran Standard Time">(GMT+03:30) Tehran</option>
                <option value="165;Arabian Standard Time">(GMT+04:00) Abu Dhabi, Muscat</option>
                <option value="170;Caucasus Standard Time">(GMT+04:00) Baku, Tbilisi, Yerevan</option>
                <option value="175;Afghanistan Standard Time;Transitional Islamic State of Afghanistan Standard Time">(GMT+04:30) Kabul</option>
                <option value="180;Ekaterinburg Standard Time">(GMT+05:00) Ekaterinburg</option>
                <option value="185;West Asia Standard Time">(GMT+05:00) Islamabad, Karachi, Tashkent</option>
                <option value="190;India Standard Time">(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi</option>
                <option value="193;Nepal Standard Time">(GMT+05:45) Kathmandu</option>
                <option value="201;N. Central Asia Standard Time">(GMT+06:00) Almaty, Novosibirsk</option>
                <option value="195;Central Asia Standard Time">(GMT+06:00) Astana, Dhaka</option>
                <option value="200;Sri Lanka Standard Time">(GMT+06:00) Sri Jayawardenepura</option>
                <option value="203;Myanmar Standard Time">(GMT+06:30) Yangon (Rangoon)</option>
                <option value="205;SE Asia Standard Time;S.E. Asia Standard Time">(GMT+07:00) Bangkok, Hanoi, Jakarta</option>
                <option value="207;North Asia Standard Time">(GMT+07:00) Krasnoyarsk</option>
                <option value="210;China Standard Time">(GMT+08:00) Beijing, Chongqing, Hong Kong SAR, Urumqi</option>
                <option value="227;North Asia East Standard Time;(GMT+08:00) Irkutsk, Ulan Bator">(GMT+08:00) Irkutsk, Ulaanbaatar</option>
                <option value="215;Singapore Standard Time">(GMT+08:00) Kuala Lumpur, Singapore</option>
                <option value="225;W. Australia Standard Time">(GMT+08:00) Perth</option>
                <option value="220;Taipei Standard Time">(GMT+08:00) Taipei</option>
                <option value="235;Tokyo Standard Time">(GMT+09:00) Osaka, Sapporo, Tokyo</option>
                <option value="230;Korea Standard Time">(GMT+09:00) Seoul</option>
                <option value="240;Yakutsk Standard Time">(GMT+09:00) Yakutsk</option>
                <option value="250;Cen. Australia Standard Time">(GMT+09:30) Adelaide</option>
                <option value="245;AUS Central Standard Time;A.U.S. Central Standard Time">(GMT+09:30) Darwin</option>
                <option value="260;E. Australia Standard Time">(GMT+10:00) Brisbane</option>
                <option value="255;AUS Eastern Standard Time;A.U.S. Eastern Standard Time">(GMT+10:00) Canberra, Melbourne, Sydney</option>
                <option value="275;West Pacific Standard Time">(GMT+10:00) Guam, Port Moresby</option>
                <option value="265;Tasmania Standard Time">(GMT+10:00) Hobart</option>
                <option value="270;Vladivostok Standard Time">(GMT+10:00) Vladivostok</option>
                <option value="280;Central Pacific Standard Time">(GMT+11:00) Magadan, Solomon Islands, New Caledonia</option>
                <option value="290;New Zealand Standard Time">(GMT+12:00) Auckland, Wellington</option>
                <option value="285;Fiji Islands Standard Time">(GMT+12:00) Fiji Islands, Kamchatka, Marshall Islands</option>
                <option value="300;Tonga Standard Time">(GMT+13:00) Nuku'alofa</option>
                <option value="80;Azores Standard Time">(GMT-01:00) Azores</option>
                <option value="83;Cape Verde Standard Time">(GMT-01:00) Cape Verde Islands</option>
                <option value="75;Mid-Atlantic Standard Time">(GMT-02:00) Mid-Atlantic</option>
                <option value="65;E. South America Standard Time">(GMT-03:00) Brasilia</option>
                <option value="70;SA Eastern Standard Time;S.A. Eastern Standard Time">(GMT-03:00) Buenos Aires, Georgetown</option>
                <option value="73;Greenland Standard Time">(GMT-03:00) Greenland</option>
                <option value="60;Newfoundland Standard Time;Newfoundland and Labrador Standard Time">(GMT-03:30) Newfoundland and Labrador</option>
                <option value="50;Atlantic Standard Time">(GMT-04:00) Atlantic Time (Canada)</option>
                <option value="55;SA Western Standard Time;S.A. Western Standard Time">(GMT-04:00) Caracas, La Paz</option>
                <option value="56;Pacific SA Standard Time;Pacific S.A. Standard Time">(GMT-04:00) Santiago</option>
                <option value="45;SA Pacific Standard Time;S.A. Pacific Standard Time">(GMT-05:00) Bogota, Lima, Quito</option>
                <option value="35;Eastern Standard Time">(GMT-05:00) Eastern Time (US and Canada)</option>
                <option value="40;US Eastern Standard Time;U.S. Eastern Standard Time">(GMT-05:00) Indiana (East)</option>
                <option value="33;Central America Standard Time">(GMT-06:00) Central America</option>
                <option value="20;Central Standard Time">(GMT-06:00) Central Time (US and Canada)</option>
                <option value="30;Mexico Standard Time">(GMT-06:00) Guadalajara, Mexico City, Monterrey</option>
                <option value="25;Canada Central Standard Time">(GMT-06:00) Saskatchewan</option>
                <option value="15;US Mountain Standard Time;U.S. Mountain Standard Time">(GMT-07:00) Arizona</option>
                <option value="13;Mexico Standard Time 2">(GMT-07:00) Chihuahua, La Paz, Mazatlan</option>
                <option value="10;Mountain Standard Time">(GMT-07:00) Mountain Time (US and Canada)</option>
                <option value="4;Pacific Standard Time">(GMT-08:00) Pacific Time (US and Canada); Tijuana</option>
                <option value="3;Alaskan Standard Time">(GMT-09:00) Alaska</option>
                <option value="2;Hawaiian Standard Time">(GMT-10:00) Hawaii</option>
                <option value="1;Samoa Standard Time">(GMT-11:00) Midway Island, Samoa</option>
                <option value="0;Dateline Standard Time">(GMT-12:00) International Date Line West</option>
           
           </select>
           
           <input type=hidden Name=TimeZone /> <!-- XP Style TimeZone PST = 004 -->
           <input type=hidden Name=TimeZoneName />  <!-- Vista Style TimeZone PST = "Pacific Standard Time" -->

        ]]></Body>
  </Pane>
  <Pane id="Ready">
    <Condition><![CDATA[ucase(Property("SkipSummary")) <> "YES"]]></Condition>
    <ButtonNext>
      <Label><![CDATA[<button accesskey=G id=buttonNext language=vbscript onclick=ButtonNextClick>Be<U>g</U>in</button>]]></Label>
    </ButtonNext>
    <Body><![CDATA[	
		<H1>Ready to begin.</H1>
		<p>Using the information you provided, the deployment can now begin.</p>

		<p>
		 <input id=MoreInfo src=plusicon.gif type=image onclick="javascript:HideUnHideCmdWindow(optionalWindow1);" />     
		 <label onclick="javascript:MoreInfo.click();" >Details ...</label></br>
		 <span id=optionalWindow1 style="display=none;" class=LightColoredBox>Details Here!</span>
		</p>
      
	]]></Body>
    <Initialization><![CDATA[PrepareFinalScreen]]></Initialization>
  </Pane>
</Wizard>